package com.ruoyi.shop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shop.mapper.DayIncomeMapper;
import com.ruoyi.shop.domain.DayIncome;
import com.ruoyi.shop.service.IDayIncomeService;

/**
 * 利润日清Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-14
 */
@Service
public class DayIncomeServiceImpl implements IDayIncomeService 
{
    @Autowired
    private DayIncomeMapper dayIncomeMapper;

    /**
     * 查询利润日清
     * 
     * @param id 利润日清主键
     * @return 利润日清
     */
    @Override
    public DayIncome selectDayIncomeById(Long id)
    {
        return dayIncomeMapper.selectDayIncomeById(id);
    }

    /**
     * 查询利润日清列表
     * 
     * @param dayIncome 利润日清
     * @return 利润日清
     */
    @Override
    public List<DayIncome> selectDayIncomeList(DayIncome dayIncome)
    {
        return dayIncomeMapper.selectDayIncomeList(dayIncome);
    }

    /**
     * 新增利润日清
     * 
     * @param dayIncome 利润日清
     * @return 结果
     */
    @Override
    public int insertDayIncome(DayIncome dayIncome)
    {
        return dayIncomeMapper.insertDayIncome(dayIncome);
    }

    /**
     * 修改利润日清
     * 
     * @param dayIncome 利润日清
     * @return 结果
     */
    @Override
    public int updateDayIncome(DayIncome dayIncome)
    {
        return dayIncomeMapper.updateDayIncome(dayIncome);
    }

    /**
     * 批量删除利润日清
     * 
     * @param ids 需要删除的利润日清主键
     * @return 结果
     */
    @Override
    public int deleteDayIncomeByIds(Long[] ids)
    {
        return dayIncomeMapper.deleteDayIncomeByIds(ids);
    }

    /**
     * 删除利润日清信息
     * 
     * @param id 利润日清主键
     * @return 结果
     */
    @Override
    public int deleteDayIncomeById(Long id)
    {
        return dayIncomeMapper.deleteDayIncomeById(id);
    }
}
